package org.liuping.vo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
public class UserRegistryVo {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @Email(message = "邮件格式不正确")
    @NotBlank(message = "邮件不能为空")
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "密码确认不能为空")
    private String confirmPassword;
}
